package com.fireline.beauty.member;

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.Table;

import com.zgw.fireline.base.frame.IFunction;
import org.eclipse.swt.widgets.TabItem;
import org.eclipse.wb.swt.SWTResourceManager;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.ToolItem;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.custom.CLabel;
import com.zgw.fireline.base.controls.DataTable;
import com.zgw.fireline.base.dataset.Dataset;

public class HyhfView implements IFunction {

	private Shell shell;
	private Text text;
	private Text text_1;

	/**
	 * @wbp.parser.entryPoint
	 */
	@Override
	public Control createControl(Composite parent) {
		this.shell = parent.getShell();
		TabFolder content = new TabFolder(parent, SWT.NONE);

		TabItem tbtmNewItem_1 = new TabItem(content, SWT.NONE);
		tbtmNewItem_1.setText("回员消费回访");

		Composite composite = new Composite(content, SWT.NONE);
		tbtmNewItem_1.setControl(composite);
		composite.setLayout(new GridLayout(1, false));

		ToolBar toolBar = new ToolBar(composite, SWT.FLAT | SWT.RIGHT);

		ToolItem tltmNewItem = new ToolItem(toolBar, SWT.NONE);
		tltmNewItem.setText("回访");

		ToolItem tltmNewItem_1 = new ToolItem(toolBar, SWT.NONE);
		tltmNewItem_1.setText("打印");

		ToolItem tltmNewItem_2 = new ToolItem(toolBar, SWT.NONE);
		tltmNewItem_2.setText("导出");

		ToolItem toolItem = new ToolItem(toolBar, SWT.NONE);
		toolItem.setText("退出");

		Composite composite_2 = new Composite(composite, SWT.NONE);
		composite_2.setLayout(new GridLayout(5, false));
		composite_2.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true,
				false, 1, 1));

		Label label = new Label(composite_2, SWT.NONE);
		label.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false,
				1, 1));
		label.setText("状态：");

		Combo combo = new Combo(composite_2, SWT.READ_ONLY);
		combo.setItems(new String[] {"全部", "已回访", "未回访"});
		combo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1,
				1));
		combo.select(0);

		Label label_1 = new Label(composite_2, SWT.NONE);
		label_1.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false,
				1, 1));
		label_1.setText("会员信息：");

		text = new Text(composite_2, SWT.BORDER);
		GridData gd_text = new GridData(SWT.FILL, SWT.CENTER, false, false, 1,
				1);
		gd_text.widthHint = 100;
		text.setLayoutData(gd_text);

		ToolBar toolBar_1 = new ToolBar(composite_2, SWT.FLAT | SWT.RIGHT);

		ToolItem toolItem_1 = new ToolItem(toolBar_1, SWT.NONE);
		toolItem_1.setImage(SWTResourceManager.getImage(HyhfView.class,
				"/com/fireline/beauty/image/query.png"));
		toolItem_1.setText("查询");

		DataTable dataTable = new DataTable(composite, SWT.BORDER
				| SWT.FULL_SELECTION, (Dataset) null);
		dataTable.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1,
				1));
		dataTable.setHeaderVisible(true);
		dataTable.setLinesVisible(true);

		TabItem tbtmNewItem = new TabItem(content, SWT.NONE);
		tbtmNewItem.setImage(null);
		tbtmNewItem.setText("自定义回访");
		
		Composite composite_1 = new Composite(content, SWT.NONE);
		tbtmNewItem.setControl(composite_1);
		composite_1.setLayout(new GridLayout(1, false));
		
		ToolBar toolBar_2 = new ToolBar(composite_1, SWT.FLAT | SWT.RIGHT);
		
		ToolItem toolItem_2 = new ToolItem(toolBar_2, SWT.NONE);
		toolItem_2.setText("添加");
		
		ToolItem toolItem_3 = new ToolItem(toolBar_2, SWT.NONE);
		toolItem_3.setText("删除");
		
		ToolItem toolItem_4 = new ToolItem(toolBar_2, SWT.NONE);
		toolItem_4.setText("打印");
		
		ToolItem toolItem_5 = new ToolItem(toolBar_2, SWT.NONE);
		toolItem_5.setText("导出");
		
		ToolItem toolItem_6 = new ToolItem(toolBar_2, SWT.NONE);
		toolItem_6.setText("退出");
		
		Composite composite_3 = new Composite(composite_1, SWT.NONE);
		composite_3.setLayout(new GridLayout(3, false));
		composite_3.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));
		
		Label label_2 = new Label(composite_3, SWT.NONE);
		label_2.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1));
		label_2.setText("会员信息：");
		
		text_1 = new Text(composite_3, SWT.BORDER);
		GridData gd_text_1 = new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1);
		gd_text_1.widthHint = 100;
		text_1.setLayoutData(gd_text_1);
		
		ToolBar toolBar_3 = new ToolBar(composite_3, SWT.FLAT | SWT.RIGHT);
		
		ToolItem tltmNewItem_3 = new ToolItem(toolBar_3, SWT.NONE);
		tltmNewItem_3.setImage(SWTResourceManager.getImage(HyhfView.class, "/com/fireline/beauty/image/query.png"));
		tltmNewItem_3.setText("查找");
		
		DataTable dataTable_1 = new DataTable(composite_1, SWT.BORDER | SWT.FULL_SELECTION,(Dataset)null);
		dataTable_1.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
		dataTable_1.setHeaderVisible(true);
		dataTable_1.setLinesVisible(true);
		return content;
	}
}
